﻿mainModule.controller("editTabsCtrl", ["$scope", "$controller", function ($scope, $controller) {
    "use strict";
    // instantiate base controller    
    $controller('BaseEditTabsCtrl', { $scope: $scope });

    $scope.$on('itemAdding', function (e, id) {
        $scope.isChildTabVisible = false;
    });
    $scope.$on('itemEditing', function (e, id) {
        $scope.isChildTabVisible = true;
    });
}]);